package dao;

import entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EmpDao {
    List<Emp> findNameAndDept(Emp emp);
    List<Emp> findEmpAndDeptName();
    int deleteEmp(int[] arr);
    List<Emp> findJobOrDept(Emp emp);
    //Map传参
    int insertEmpByMap(Map<String, Object> map);
    //注解传参
    int insertEmp(@Param("ename") String ename, @Param("job") String job);
    //模糊查询
    List<Emp> findEmpByVague(String vague);
    //分页查询
    List<Emp> findEmpPage(Map<String, Object> map);
    int selectEmpCount();
    //添加功能
    int addEmp(Emp emp);
    int deleteEmpById(int id);
    //修改功能
    int updateEmpById(Emp emp);
}
